/*
 * @Author: your name
 * @Date: 2021-03-05 19:39:53
<<<<<<< HEAD
 * @LastEditTime: 2021-03-09 10:56:50
 * @LastEditors: Zhang Zhaoda
=======
 * @LastEditTime: 2021-03-08 20:06:32
 * @LastEditors: Please set LastEditors
>>>>>>> 525c274075c810037927cd9041b5bab3fe1b9245
 * @Description: In User Settings Edit
 * @FilePath: \day\src\services\user.ts
 */
import {request} from 'umi';
import {IUser} from '@/interface/user.d';

//登录
export const login = (data:IUser) => {
    return request('/user/login',{method:'POST',data})
}

//获取个人信息
export const getUserInfo = () => {
    return request('/user/userInfo',{method:'get'})
}

//获取个人视图权限
export const getViewAuthority = (params:any) => {
    
    return request('/user/new',{method:'get',params:{user_id:params}})
}